package com.project.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.reggie.dto.DishDto;
import com.project.reggie.entity.Dish;

import java.util.List;


public interface DishService extends IService<Dish> {
    //新增菜品同时插入菜品对应的口味数据，需要操作两张表，dish，dish_flavor
     void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品信息和对应的口味信息
    DishDto getByIdWithFlavor(Long id);

     void updateWithFlavor(DishDto dishDto);

     void removeWithFlavor(List<Long> ids);


}
